package Similarity;

public abstract class SimilarityCalculatorAbstractClass implements SimilarityCalculatorInterface{
	
	  public double calculateLengthOfTheVector(double[] vector)
	  {
		  double sumOfSquresOfTheElements = 0;
		  
		  for(int i=0; i<vector.length; i++)
		  {
			  sumOfSquresOfTheElements = sumOfSquresOfTheElements + vector[i]*vector[i];			  
		  }
		  return Math.sqrt(sumOfSquresOfTheElements);		  
	  }
}
